home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1997 February
/
EnigmA AMIGA RUN 15 (1997)(G.R. Edizioni)(IT)[!][issue 1997-02][PLANET CD V].iso
/
progs
/
editor
/
frexxed
/
fpl
/
searchcount.fpl
< prev
next >
Wrap
Text File
|
1995-07-18
|
550b
|
25 lines
export int SearchCount()
{
int BufferID=DuplicateEntry();
int foundcount=0;
int currentbuffer=GetBufferID();
if (BufferID) {
CurrentBuffer(BufferID);
GotoLine(1, 0);
while (Search()>=0)
foundcount++;
CurrentBuffer(currentbuffer);
Kill(BufferID);
Request(joinstr("\"", ReadInfo("search_buffer"), "\" is found ",
ltostr(foundcount), " times!"),
"SearchCount", "Understood!");
}
}
/* Assign "amiga control s" to the function */
AssignKey("SearchCount();", "amiga control s");